<%@page import="com.fs.base.param.SysConstant"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="/WEB-INF/jsp/include/easyui.jsp" %>
<%@ include file="/WEB-INF/jsp/include/easyui-layui-upload.jsp" %>
<%@ include file="../../include/pForm.jsp" %>
<title>入库记录查看</title>
<script>
$(function(){
	fn.resetForm();
	var _data = fn.getDialogData();
	var userDialog = null;
	$("#dataGrid").datagrid({
		idField: "id",
		fit: true,
		rownumbers: true,
		pagination: true,
		singleSelect: true, 
		url : '/console/com.fs.jzzn.pojo.StorageItem/list',
		queryParams: {
			billNo:_data.billNo,
			billNo_searchType: "eq"
		},
		columns : [[ 
		    	{field: 'mNo', title: '物料编码', width: 150}
			    , {field: 'mName', title: '物料名称', width: 250} 
		    	,{field: 'mType', title: '物料规格', width: 150}
		    	,{field: 'mUnit', title: '物料单位', width: 150}
		    	,{field: 'mCount', title: '入库数量', width: 100,editor:{type:'numberbox',options:{precision:1}}}
		    	,{field: 'location', title: '库位', width: 100,editor:{type:'text',options:{precision:1}}}
		    	,{field: 'opt', title: '操作', width: 115,formatter: function(value,row,index){
		    		return '<a href="#" onclick="deleteRow('+ index +')">删除</a>';
		    	}}
		]]
	});
});
</script>
</head>
<body  class="easyui-layout">
		<!-- 但行高度33px，多行时 33乘以行数  -->
		<div id="querybar" data-options="region:'north',split:false,border:false" style="height:300px;">
			<div class="easyui-panel" data-options="fit:true,border:false" style="padding:10px;">
				<form id="easyuiForm" method="post" action="#"   >
					<div style="margin-bottom:20px">
							<input  class="easyui-textbox"  readonly="readonly" name="billNo" style="width:300px;" data-options="label:'入库编号:',required:true,prefix:'RK',timestamp:'yyMMddHHmmss' "/>
							<select class="easyui-combobox" name="pNo" style="width:300px;" data-options="label:'项目名称:',required:true" 
								url="/console/newProject/combobox?textField=pName&valueField=pNo" >
						   	 </select>
						   	 <input class="easyui-textbox" name="contractNo"  style="width:300px;"  data-options="label:'订单编号:',required:false"  />
						</div>
					
						<div style="margin-bottom:20px">
							<select class="easyui-combobox" name="sType" style="width:300px;" data-options="label:'入库类别:'" 
									url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=C2&pCode_searchType=eq&text=甲供" >
							 	</select>
							<select class="easyui-combobox" name="warehouseName" style="width:300px;" data-options="label:'仓库名称:'" 
									url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=C3&pCode_searchType=eq&text=东湖落雁岛" >
							 	</select>
							 <input class="easyui-datebox" name="inDate"  style="width:300px;"  data-options="label:'入库日期:',required:false"  />
						</div>
					
						<div style="margin-bottom:20px">
								 <input class="easyui-textbox" name="consignee"  style="width:300px;"  data-options="label:'收货人:',required:false"  />
								<input class="easyui-textbox" name="supplier"  style="width:300px;"  data-options="label:'供应商:',required:false"  />
								<input class="easyui-textbox" name="remark"  style="width:300px;"  data-options="label:'备注:',required:false"  />
						</div>
				
					<div style="margin-bottom:20px">
						<input class="easyui-layuiupload" name="attachment" style="width:925px;" data-options="label:'附件:',upload:{auto:false,height:120,readonly:true}" />
					</div>
				</form>
			</div>
		</div>  
		
		<!-- 表格 -->
		<div region="center" border="false">
			<table id="dataGrid"></table>
		</div>
</body>
</html>